﻿@model IEnumerable<GameSchool.Models.Quiz>
<link rel="stylesheet" type="text/css" href="/Content/css/forms.css" />
<fieldset>
<legend>Prófayfirlit</legend>
<table id="tests">
    <tr>
        <th>
            Nafn
        </th>
        <th>
            Lýsing
        </th>
        <th>
            Birt
        </th>
        <th>
            Byrjar
        </th>
        <th>
            Endar
        </th>
        <th>
            Stig
        </th>
        <th>
            Bónusstig
        </th>
        <th>
            Höf
        </th>
        <th>
            ÁfangaID
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Name)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Descr)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.DatePub)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.DateStart)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.DateEnd)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.MaxPoints)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.MaxBonusPoints)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Author)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CourseID)
        </td>
        <td>
            @Html.ActionLink("Delete", "DeleteQuiz", "Quiz")
        </td>
    </tr>
}

</table>

<section id="newtest">
    @Html.ActionLink("Búa til nýtt próf", "Create")
</section>
</fieldset>